import {resolve} from 'path';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue'
import legacy from '@vitejs/plugin-legacy';
export default defineConfig({
    server: {
        host: '0.0.0.0',
        port: 8080
    },
    preview:{
        host: '0.0.0.0',
        port: 8080
    },
    build: {
        sourcemap: 'hidden'
    },
    publicDir: false,
    plugins: [
        vue(),
        legacy({
          targets: ['defaults', 'not IE 11'],
        }),
    ],
    resolve: {
        alias: {
            '@': resolve(__dirname, 'src')
        },
        extensions: ['.js', '.json', '.vue', '.ts']
    }
})